<?php

/**
 * 系统配置.
 * 
 * @author aic <41262633@qq.com>
 */

namespace Config;

/**
 * Class Config.
 */
class System {

    /**
     * 网站信息.
     * 
     * @var array.
     */
    public static $site = array(
        'host' => 'http://quan.imeiwen.org/',
        'title' => '爱淘爱生活',
        'note' => '淘宝（天猫）购物，买前领券省钱，买后收货再领红包，省了又省。',
        'appKey' => '',
        'appSecret' => '',
        'mmxxid' => '', // mm_memberId_siteId_adzoneId
        'qqQrcode' => 'http://mobile.qq.com/qrcode?url=', // QQ二维码http://mobile.qq.com/qrcode?url=http://t.cn/RrfMvUi
        'wbShortUrl' => 'https://api.weibo.com/2/short_url/shorten.json?source=76945915&url_long=', // 微博短网址 https://api.weibo.com/2/short_url/shorten.json?source=76945915&url_long=http://imeiwen.org/post/6c615ca7
        'rmRate' => 0.7, // return money rate 佣金返现比率0.7=70%
        'minCommissionRate' => "200", // 最低佣金比率
        'minVolume' => "666", // 最低月销量
        'minPacket' => 3.34, // 最低可领红包
        'version' => 20181010,
        'toolBars' => [
            ['href' => '/search', 'type' => 'search', 'title' => '查券找券', 'icon' => 'icon-search'],
            ['href' => '/index/hot', 'type' => 'you', 'title' => '每日优选', 'icon' => 'icon-clock'],
            ['href' => '/index/invite', 'type' => 'invite', 'title' => '邀请有奖', 'icon' => 'icon-gift'],
            ['href' => '/my', 'type' => 'my', 'title' => '个人中心', 'icon' => 'icon-me'],
        ],
        'orderStatus' => [
            0 => '待申领', // 账号申领
            1 => '待审核', // 对应订单信息未导入
            2 => '审核驳回', // 订单创建日期不符合
            3 => '订单失效', // 订单失效
            4 => '订单付款', // 已付款, 等待确认收货
            5 => '订单结算', // 已确认收货
            6 => '红包已发', // 红包已发放
        ],
        'wx' => [
            'appId' => '',
            'appSecret' => '',
        ],
        'thumb' => 'http://st.imeiwen.org/itaobao/default.png', // 默认头像
        'trytimes' => 10, // taoapi重试次数
    );

}
